﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace StudentLive.Common
{
    class FlowDirectionToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {

            var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
            string langId = (string)localSettings.Values[Constants.LanguageId];
            if (langId == "en")
            {
                return App.Current.Resources["ChevronGlyph"];
            }
            return App.Current.Resources["ChevronGlyphArabic"];
        }


        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            return "";
        }
    }
}
